package com.kish.service.impl;

import com.kish.dao.UserDao;
import com.kish.dao.impl.UserDaoImpl;
import com.kish.domain.User;
import com.kish.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserServiceImpl implements UserService {
    private UserDao userDao ;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void save(User user) {
        System.out.println("userService save");
        this.userDao.addUser(new User());
    }
}
